package com.zhongjian.technologycal.mall.bean;

import java.io.Serializable;
import java.util.List;

/**
 * Created by wei on 2018/1/17.
 */

public class ProductDetailsBean implements Serializable{

    private static final long serialVersionUID = -7060210544600464481L;
    /**
     * error_code : 0
     * error_message : 成功
     * data : {"product":{"id":177,"productname":"尚源佳胚芽米","stocknum":482,"price":98,"freight":0,"elecnum":28,"tag":1,"producerno":"","producertel":"","producername":"","placeofdelivery":"","productphotos":[{"photo":"/upload/pics/e8d50bb1-2afd-496b-a334-d3f38c50369b.jpg"},{"photo":"/upload/pics/7583805d-547b-420e-b86c-3d9c7b9572f3.jpg"},{"photo":"/upload/pics/b2bc10b1-93e6-4f83-965c-e1e4463042c0.jpg"}],"productspecs":[{"id":220,"specname":"礼盒装2kg*2","price":0,"elecNum":0},{"id":223,"specname":"袋装2.5kg*2","price":0,"elecNum":0}]},"productComment":{"id":125,"createtime":"2017-08-09 05:56:58","memo":"收货及时，而且还有回访，告知使用方法，真不错??","star":5,"productCommentPhotos":[],"user":{"truename":"曹红霞","headphoto":"/upload/pics/nohead.png"}},"beLongToVIP":false}
     */

    private int error_code;
    private String error_message;
    private DataBean data;

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public String getError_message() {
        return error_message;
    }

    public void setError_message(String error_message) {
        this.error_message = error_message;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * product : {"id":177,"productname":"尚源佳胚芽米","stocknum":482,"price":98,"freight":0,"elecnum":28,"tag":1,"producerno":"","producertel":"","producername":"","placeofdelivery":"","productphotos":[{"photo":"/upload/pics/e8d50bb1-2afd-496b-a334-d3f38c50369b.jpg"},{"photo":"/upload/pics/7583805d-547b-420e-b86c-3d9c7b9572f3.jpg"},{"photo":"/upload/pics/b2bc10b1-93e6-4f83-965c-e1e4463042c0.jpg"}],"productspecs":[{"id":220,"specname":"礼盒装2kg*2","price":0,"elecNum":0},{"id":223,"specname":"袋装2.5kg*2","price":0,"elecNum":0}]}
         * productComment : {"id":125,"createtime":"2017-08-09 05:56:58","memo":"收货及时，而且还有回访，告知使用方法，真不错??","star":5,"productCommentPhotos":[],"user":{"truename":"曹红霞","headphoto":"/upload/pics/nohead.png"}}
         * beLongToVIP : false
         */

        private ProductBean product;
        private ProductCommentBean productComment;
        private boolean beLongToVIP;

        public ProductBean getProduct() {
            return product;
        }

        public void setProduct(ProductBean product) {
            this.product = product;
        }

        public ProductCommentBean getProductComment() {
            return productComment;
        }

        public void setProductComment(ProductCommentBean productComment) {
            this.productComment = productComment;
        }

        public boolean isBeLongToVIP() {
            return beLongToVIP;
        }

        public void setBeLongToVIP(boolean beLongToVIP) {
            this.beLongToVIP = beLongToVIP;
        }

        public static class ProductBean {
            /**
             * id : 177
             * productname : 尚源佳胚芽米
             * stocknum : 482
             * price : 98
             * freight : 0
             * elecnum : 28
             * tag : 1
             * producerno :
             * producertel :
             * producername :
             * placeofdelivery :
             * productphotos : [{"photo":"/upload/pics/e8d50bb1-2afd-496b-a334-d3f38c50369b.jpg"},{"photo":"/upload/pics/7583805d-547b-420e-b86c-3d9c7b9572f3.jpg"},{"photo":"/upload/pics/b2bc10b1-93e6-4f83-965c-e1e4463042c0.jpg"}]
             * productspecs : [{"id":220,"specname":"礼盒装2kg*2","price":0,"elecNum":0},{"id":223,"specname":"袋装2.5kg*2","price":0,"elecNum":0}]
             */

            private int id;
            private String productname;
            private int stocknum;
            private double price;
            private double freight;
            private double elecnum;
            private int tag;
            private String producerno;
            private String producertel;
            private String producername;
            private String placeofdelivery;
            private List<ProductphotosBean> productphotos;
            private List<ProductspecsBean> productspecs;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getProductname() {
                return productname;
            }

            public void setProductname(String productname) {
                this.productname = productname;
            }

            public int getStocknum() {
                return stocknum;
            }

            public void setStocknum(int stocknum) {
                this.stocknum = stocknum;
            }

            public double getPrice() {
                return price;
            }

            public void setPrice(double price) {
                this.price = price;
            }

            public double getFreight() {
                return freight;
            }

            public void setFreight(double freight) {
                this.freight = freight;
            }

            public double getElecnum() {
                return elecnum;
            }

            public void setElecnum(double elecnum) {
                this.elecnum = elecnum;
            }

            public int getTag() {
                return tag;
            }

            public void setTag(int tag) {
                this.tag = tag;
            }

            public String getProducerno() {
                return producerno;
            }

            public void setProducerno(String producerno) {
                this.producerno = producerno;
            }

            public String getProducertel() {
                return producertel;
            }

            public void setProducertel(String producertel) {
                this.producertel = producertel;
            }

            public String getProducername() {
                return producername;
            }

            public void setProducername(String producername) {
                this.producername = producername;
            }

            public String getPlaceofdelivery() {
                return placeofdelivery;
            }

            public void setPlaceofdelivery(String placeofdelivery) {
                this.placeofdelivery = placeofdelivery;
            }

            public List<ProductphotosBean> getProductphotos() {
                return productphotos;
            }

            public void setProductphotos(List<ProductphotosBean> productphotos) {
                this.productphotos = productphotos;
            }

            public List<ProductspecsBean> getProductspecs() {
                return productspecs;
            }

            public void setProductspecs(List<ProductspecsBean> productspecs) {
                this.productspecs = productspecs;
            }

            public static class ProductphotosBean {
                /**
                 * photo : /upload/pics/e8d50bb1-2afd-496b-a334-d3f38c50369b.jpg
                 */

                private String photo;

                public String getPhoto() {
                    return photo;
                }

                public void setPhoto(String photo) {
                    this.photo = photo;
                }
            }

            public static class ProductspecsBean {
                /**
                 * id : 220
                 * specname : 礼盒装2kg*2
                 * price : 0
                 * elecNum : 0
                 */

                private int id;
                private String specname;
                private Double price;
                private int elecNum;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getSpecname() {
                    return specname;
                }

                public void setSpecname(String specname) {
                    this.specname = specname;
                }

                public Double getPrice() {
                    return price;
                }

                public void setPrice(Double price) {
                    this.price = price;
                }

                public int getElecNum() {
                    return elecNum;
                }

                public void setElecNum(int elecNum) {
                    this.elecNum = elecNum;
                }
            }
        }

        public static class ProductCommentBean {
            /**
             * id : 125
             * createtime : 2017-08-09 05:56:58
             * memo : 收货及时，而且还有回访，告知使用方法，真不错??
             * star : 5
             * productCommentPhotos : []
             * user : {"truename":"曹红霞","headphoto":"/upload/pics/nohead.png"}
             */

            private int id;
            private String createtime;
            private String memo;
            private int star;
            private UserBean user;
            private List<?> productCommentPhotos;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public String getCreatetime() {
                return createtime;
            }

            public void setCreatetime(String createtime) {
                this.createtime = createtime;
            }

            public String getMemo() {
                return memo;
            }

            public void setMemo(String memo) {
                this.memo = memo;
            }

            public int getStar() {
                return star;
            }

            public void setStar(int star) {
                this.star = star;
            }

            public UserBean getUser() {
                return user;
            }

            public void setUser(UserBean user) {
                this.user = user;
            }

            public List<?> getProductCommentPhotos() {
                return productCommentPhotos;
            }

            public void setProductCommentPhotos(List<?> productCommentPhotos) {
                this.productCommentPhotos = productCommentPhotos;
            }

            public static class UserBean {
                /**
                 * truename : 曹红霞
                 * headphoto : /upload/pics/nohead.png
                 */

                private String truename;
                private String headphoto;

                public String getTruename() {
                    return truename;
                }

                public void setTruename(String truename) {
                    this.truename = truename;
                }

                public String getHeadphoto() {
                    return headphoto;
                }

                public void setHeadphoto(String headphoto) {
                    this.headphoto = headphoto;
                }
            }
        }
    }
}
